<? require_once "hotel.php" ?>
<? require_once 'head.html' ?>
<? $participants = Hotel::getParticipants() ?>


<h1> Participants: </h1>

<? if ($participants) { ?> 

  <table>
    <? foreach ($participants as $id => $participant) { ?> 
      <tr><td> <?= $id ?>.</td><td><?= $participant ?></td></tr>
    <? } ?>
  </table>

<? } else { ?>

  No participants yet.

<? } ?>

<? require 'tail.html' ?>
